package com.cn.web.user.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.cn.dic.annoations.DicAnnoations;
import com.cn.dic.serialize.DicSerialize;
import com.cn.user.UserDO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * description: MemberDTO <br>
 * date: 23.7.18 14:42 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "会员实体信息")
public class MemberDTO extends UserDO {

    @DicAnnoations(dicType = "gender")
    @JsonSerialize(using = DicSerialize.class)
    @ApiModelProperty(value = "性别")
    private String genderTxt;

    @ApiModelProperty(value = "所属角色")
    private List<UserVO.UserRoles> memberRoles;

    @ApiModelProperty(value = "子账号信息")
    private List<UserChildAccountDO> child;

    public String getGenderTxt() {
        return super.getGender();
    }
}
